Fix the opposite size measurement in GtkConstraintLayout
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 27 Jun 2019 16:34:29 +0000 (17:34 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 30 Jun 2019 22:42:44 +0000 (23:42 +0100)
commit54104b66764a7e51240f6ca0a7cd6d6f44f323a1
tree4ec65358db7be044abfb6aac39525455272cfa23
parent21450d5f234e00580e27d208592f7d929cbbdbd7
Fix the opposite size measurement in GtkConstraintLayout

We cannot use the given "for size" when querying our children, because
the constraint layout has no idea about the opposite size of its
children until the layout is complete.

Additionally, we should only suggest an opposite size for the layout if
we have one, instead of suggesting a weak zero size.
gtk/gtkconstraintlayout.c